﻿@model hotiguassu.Models.GirlsModels
@{
    ViewBag.Title = "Nova Garota";
    
}
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
<script src="@Url.Content("~/Scripts/jquery.maskedinput-1.3.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.maskMoney.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen"   href="@Url.Content("~/Content/jquery-ui.css")">
<script type="text/javascript">
    $(document).ready(function () {

        $("#DtNacimento").datepicker();
        $(function () {
            $("#DtNacimento").datepicker({
                showOn: "button",
                buttonImage: "calendario.png",
                buttonImageOnly: true
            });
        });

        $("#DtNacimento").mask("99/99/9999");
        $("#opcaoTelefone1").mask("(99) 9999-9999");
        $("#opcaoTelefone2").mask("(99) 9999-9999");
        $("#opcaoTelefone3").mask("(99) 9999-9999");
        $("#Altura").mask("9.99");
        $("#Peso").mask("99");
        $("#Quadris").mask("99");
        $("#Busto").mask("99");

        $("#submit").click(function () {
            $("form").submit();
        });
    });

</script>
<div class="header2">
    <div class="subpages2-nav">
        @Html.Partial("_MenuGirlPartial")
    </div>
</div>
<section id="contentGirls">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

       @Html.HiddenFor(model => model.idGirl)
       @Html.HiddenFor(model => model.situacao)

     <div id="contentLeft" >
    
        <div>
        <div>
            @Html.LabelFor(model => model.Nome)
            </div>
            @Html.EditorFor(model => model.Nome)
        </div> 
    
       <div>
           @Html.LabelFor(model => model.DtNacimento)
           </div>
           <div>
            @Html.EditorFor(model => model.DtNacimento)
        </div> 
    
        <div>
            <fieldset>
            <legend>@Html.LabelFor(model => model.Telefones)</legend>
            @{
    string str = Model.Telefones;
    string[] telefones = str.Split(';');

    for (int i = 0; i < 3; i++)
    {
        string tel = "";
        if (i < telefones.Length)
        {
            tel = telefones[i];
        }
        <input id="opcaoTelefone@(i + 1)" type="text" name="opcaoTelefone1" value="@tel"/>
        <br />    
    } 
   
            }
        
            
            </fieldset>
        </div> 
    
         <div>
            <div id="AlturaPeso">
            <label id=LabelAltura>Altura</label>
            <label id=LabelPeso>Peso </label>  
            </div>
            @Html.EditorFor(model => model.Altura)  ( M )
            @Html.EditorFor(model => model.Peso)  ( Kg )
        </div>

        <div>
         <div id="bustoQuadril">
            <label id=LabelQuadril>Quadril</label>
            <label id=LabelBusto>Busto </label>            
            </div>
            @Html.EditorFor(model => model.Quadris) (Cm)
            @Html.EditorFor(model => model.Busto) ( Cm )
        </div>
        
    
     </div> 
    <div id="contentRigth" >

        <div>
        <div>
        @Html.LabelFor(model => model.Cabelos)
        </div>
        @{
    var lst = new List<SelectListItem>();
    lst.Add(new SelectListItem() { Text = "Loira", Value = "Loira" });
    lst.Add(new SelectListItem() { Text = "Morena", Value = "Morena" });
    lst.Add(new SelectListItem() { Text = "Ruiva", Value = "Ruiva" });
    Model.TipodeCabelo = lst;
            @Html.DropDownListFor(x => x.Cabelos, Model.TipodeCabelo)          
       }
 </div>

        <div>
           @Html.LabelFor(model => model.email)
           </div>
           <div>
            @Html.EditorFor(model => model.email)
        </div> 

       <div>
           @Html.LabelFor(model => model.login)
           </div>
           <div>
            @Html.EditorFor(model => model.login)
        </div> 

        <div>
           @Html.LabelFor(model => model.Senha)
           </div>
           <div>
            @Html.PasswordFor(model => model.Senha)
        </div> 


       <div>
        <div>
            @Html.LabelFor(model => model.Biografia)
        </div>
            @Html.TextAreaFor(model => model.Biografia, new { style = "margin: 0px; height: 120px; width: 248px;" })
        </div>

        <div>
          <div class="btns">
            <a href="/" class="link-1" id="cancelar" >Cancelar</a>
            <a href="#" class="link-1" id="submit">Enviar</a>
          </div>
      </div>
  

</div>
}

    </section>
<div id="Erro">
    @Html.ValidationMessageFor(model => model.Nome)
    @Html.ValidationMessageFor(model => model.DtNacimento)
    @Html.ValidationMessageFor(model => model.Biografia)
    @Html.ValidationMessageFor(model => model.Quadris)
    @Html.ValidationMessageFor(model => model.Peso)
    @Html.ValidationMessageFor(model => model.Altura)
    @Html.ValidationMessageFor(model => model.Busto)
</div>
